<#import "/spring.ftl" as s/>
<@override name="project">
    ${project.name}
</@override>

<@override name="main">
<div id="milestone_toolbar" art="toolbar">
    <div position="left">
        <button id="milestone_add" text="<@s.message "operation.insert"/>" onclick="milestone_list.add()"
                icon="add"  tooltip="<@s.message "tip.project.add"/>">
        </button>
        <#--<button id="milestone_delete" text="<@s.message "operation.delete"/>" onclick="milestone_list.remove('0')"-->
                <#--icon="remove" disabled="true" tooltip="<@s.message "tip.project.delete"/>">-->
        <#--</button>-->
    </div>
</div>
<div id="milestone_list">
</div>
<div id="milestone_finished_layer" style="display: none;">
    <div style="padding: 3px;margin: 3px;">
        <form id='milestone_finished_form'  method="post">
            <input id="milestone_id" name="milestone_id" value="" type="hidden">
            <textarea id='milestone_txt_answer' name='content' style='width:500px;height:260px;'></textarea>
            <br/>
            <span id='form_msg' style='display:none;'></span>
            <div style="position: relative;" width="400px" height="60px" background="black">
                <div style="position: relative;" width="400px" height="60px" background="black">
                <span style="float: left;">
                    <input type="checkbox"  name="build_check" checked="" ><@s.message 'milestone.checkbox.build'/>
                </span>
                <span style="float: right;">
                        <button id="milestone_btn_submit" type="button" onclick="milestone_list.set_reach()">
                            <span><span> <@s.message 'milestone.button.comment'/> </span></span>
                        </button>
                         <button id="fix_btn_cancel" type="button" onclick="milestone_list.close_layer('milestone_finished_layer')">
                             <span><span> <@s.message 'operation.cancel'/> </span></span>
                         </button>
                </span>
                </div>

            </div>
        </form>
    </div>
</div>
</@override>
<@override name="scripts">
<script type="text/javascript">

    var project_id = ${project.id};
    var account_json = ${account_json};
    var login_json=${login_json};
    var role_json=${role_json};
    var Leader_json=${Leader_json};
    
    var js_param = {
        image_url :'<@s.url '/resources/common/images'/>',
        upload_url: '<@s.url '/action/upload'/>',
    	view_url : '<@s.url '/milestone/view'/>',
       issue_url : '<@s.url '/project/milestone/issue_list/'/>',
       head_milestone_wizard_url : '<@s.url '/project/milestone/wizard/setup/'/>'
        <#--add_url:'<@s.url "project/milestone/edit/0/"/>',-->
        <#--edit_url:'<@s.url "project/milestone/">'-->
    }
</script>
<script type="text/javascript" src="<@s.url '/resources/common/ke/kindeditor-min.js'/>" charset="utf-8"></script>
<script type="text/javascript" src="<@s.url '/resources/scripts/project/milestone/list.js'/>"></script>
</@override>
<@extends name="/common/projectlayout1.1.ftl" current="milestone" title='milestone.view.list' pid="${project.id}"></@extends>